package zhengyanze.com.aipoemmax.guide.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 类型
 * Created by MrZheng on 2017/7/24.
 */

public class LeiXingBean implements Parcelable{
    String content;
    String link;

    public LeiXingBean(String content, String link) {
        this.content = content;
        this.link = link;
    }

    protected LeiXingBean(Parcel in) {
        content = in.readString();
        link = in.readString();
    }

    public static final Creator<LeiXingBean> CREATOR = new Creator<LeiXingBean>() {
        @Override
        public LeiXingBean createFromParcel(Parcel in) {
            return new LeiXingBean(in);
        }

        @Override
        public LeiXingBean[] newArray(int size) {
            return new LeiXingBean[size];
        }
    };

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(content);
        parcel.writeString(link);
    }
}
